package com.houxr.dubbo.service.impl;

import com.houxr.apis.DemoDubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/6/25.
 */
@Service("demoDubboService")
public class DemoDubboServiceImpl implements DemoDubboService {

    private static Logger logger = LoggerFactory.getLogger(DemoDubboServiceImpl.class);

    public double sum(double x, double y) {
        logger.info("service invoke sum:x={},y={}", x, y);
        return x + y;
    }
}
